package net.kunyv.factory;

import net.kunyv.DAL.InitBean;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;







public class DataSourceStrategyFactory
{
    private static Map<String, InitBean> services = new ConcurrentHashMap<>();


    public static InitBean getBySqlType(String type) { return services.get(type); }



    public static void register(String userType, InitBean initBean) { services.put(userType, initBean); }
}
